package com.sky.controller.user;

import com.sky.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

//@RestController
@RequestMapping("/user/api")
public class CommonController {
    /**
     * 获取requestId
     * @return
     */
    @GetMapping("requestId")
    public Result<String> requestId(){
        String uuid = UUID.randomUUID().toString();
        return Result.success(uuid);
    }
}